package com.sdhs.paas.authclient.service;



import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.sdhs.paas.authshare.common.msg.ObjectRestResponse;

import dto.ClientDTO;

/**
 * Created by ace on 2017/9/15.
 */
@FeignClient(value = "${auth.serviceId}",configuration = {})
public interface ServiceAuthFeign {
    @RequestMapping(value = "/client/myClient",method = RequestMethod.POST)
    public ObjectRestResponse<ClientDTO> getAllowedClient(@RequestBody ClientDTO client);
    @RequestMapping(value = "/client/token",method = RequestMethod.POST)
    public ObjectRestResponse<ClientDTO> getAccessToken(@RequestBody ClientDTO client);
    @RequestMapping(value = "/client/servicePubKey",method = RequestMethod.POST)
    public ObjectRestResponse<ClientDTO> getServicePublicKey(@RequestBody ClientDTO client);
    @RequestMapping(value = "/client/userPubKey",method = RequestMethod.POST)
    public ObjectRestResponse<ClientDTO> getUserPublicKey(@RequestBody ClientDTO client);

}
